<?php
try{
	include '../ini.php';
    include '../classes/xl_brand_product.php';
    $dt_xl_brand_product=new xl_brand_product;
    $read_list=$dt_xl_brand_product->read_list();
    $dt_smarty->assign('location',count($read_list));
    $dt_smarty->assign('read_list',$read_list);
	$contenForLayout=$dt_smarty->fetch('product/brand_products_add.tpl');
	$dt_smarty->assign('contenForLayout',$contenForLayout);
	$dt_smarty->assign('titleForLayout','Thêm thương hiệu sản phẩm');
	$dt_smarty->display('layout/defaults.tpl');
    $dbh=NULL;
	
} catch(Exception $e){
    $_SESSION['msg']=$e->getMessage();
	$dbh=NULL;
}
